
<%@ page import="comptadub.Membre" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <title><g:message code="login.index.label" /></title>
    </head>
    <body>
        <div class="body">
            <h1><g:message code="login.index.label" /></h1>

            <g:if test="${flash.message}">
                <div class="message">${flash.message}</div>
            </g:if>

            <g:hasErrors bean="${membre}">
            <div class="errors">
                <g:renderErrors bean="${membre}" as="list" />
            </div>
            </g:hasErrors>

            <g:form method="post">
                <div class="dialog">
                    <table>
                        <tbody>
                              <tr class="prop">
                                  <td valign="top" class="name">
                                    <label for="nomOk">Déja inscrit... </label>
                                  </td>
                                  <td valign="top" class="value ${hasErrors(bean: membre, field: 'nomOk', 'errors')}">
                                      <g:select name="nomOk" from="${comptadub.Membre.list()}" optionValue="nom" optionKey="code" value="${membre?.type?.code}" noSelection="['null': 'Choisir un membre...']" />
                                  </td>
                              </tr>

                              <tr class="prop">
                                  <td valign="top" class="name">
                                    <label for="nomNok">... ou pas</label>
                                  </td>
                                  <td valign="top" class="value ${hasErrors(bean: membre, field: 'nomNok', 'errors')}">
                                      <g:textField name="nomNok" value="" />
                                  </td>
                              </tr>
                        </tbody>
                    </table>
                </div>

                <div class="buttons">
                    <span class="button"><g:actionSubmit class="home" action="login" value="Valider" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
